<div class="product-filter" id="filter">
    <div class="display">
		<strong><?php echo $text_display; ?></strong>
        <ul>
        	<li class="list"><a href="javascript:void(0);" title="<?php echo $text_list; ?>"><?php echo $text_list; ?></a></li> 
        	<li class="grid"><a class="active" href="javascript:void(0);" title="<?php echo $text_grid; ?>"><?php echo $text_grid; ?></a></li>
    	</ul>
    </div>
    <div class="limit">
	<strong><?php echo $text_limit; ?></strong>
      <select onchange="location = this.value;">
        <?php foreach ($limits as $limits) { ?>
        <?php if ($limits['value'] == $limit) { ?>
        <option value="<?php echo $limits['href']; ?>#filter" selected="selected"><?php echo $limits['text']; ?></option>
        <?php } else { ?>
        <option value="<?php echo $limits['href']; ?>#filter"><?php echo $limits['text']; ?></option>
        <?php } ?>
        <?php } ?>
      </select>
    </div>
    <div class="sort">
	<strong><?php echo $text_sort; ?></strong>
      <select onchange="location = this.value;">
        <?php foreach ($sorts as $sorts) { ?>
        <?php if ($sorts['value'] == $sort . '-' . $order) { ?>
        <option value="<?php echo $sorts['href']; ?>#filter" selected="selected"><?php echo $sorts['text']; ?></option>
        <?php } else { ?>
        <option value="<?php echo $sorts['href']; ?>#filter"><?php echo $sorts['text']; ?></option>
        <?php } ?>
        <?php } ?>
      </select>
    </div>
     <div class="product-compare">
     	<a href="<?php echo $compare; ?>" id="compare_total"><?php echo $text_compare; ?></a>
     </div>
    <div class="clear"></div>
</div>